-- GENERATED SPELL FOR [Ravenous Furbolg] --


function spell0_26684(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(48140,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26684', 1000, 1)
end

function spell1_26684(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(59273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26684', 1000, 1)
end

function spell2_26684(pUnit, Event) --@Crazed,Self--
pUnit:FullCastSpellOnTarget(48139,pUnit)
pUnit:RegisterEvent('Sorts_26684', 10000, 1)
end

function spell3_26684(pUnit, Event) --@Terrifying Roar,Self--
pUnit:FullCastSpellOnTarget(48144,pUnit)
pUnit:RegisterEvent('Sorts_26684', 5307, 1)
end

function Sorts_26684(pUnit, Event)
local choix_sorts_26684 = math.random(0, 3)
if choix_sorts_26684 == 0 then
pUnit:RegisterEvent('spell0_26684', 1, 1)
end
if choix_sorts_26684 == 1 then
pUnit:RegisterEvent('spell1_26684', 1, 1)
end
if choix_sorts_26684 == 2 then
pUnit:RegisterEvent('spell2_26684', 1, 1)
end
if choix_sorts_26684 == 3 then
pUnit:RegisterEvent('spell3_26684', 1, 1)
end
end

function mob26684_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26684', math.random(1500, 3000), 1)
end

function mob26684_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26684_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26684_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26684, 1, 'mob26684_Action')
RegisterUnitEvent(26684, 2, 'mob26684_Leave')
RegisterUnitEvent(26684, 3, 'mob26684_Kill')
RegisterUnitEvent(26684, 4, 'mob26684_Die')
